package com.cloudOffice.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cloudOffice.model.system.SysRole;
import com.cloudOffice.result.Result;
import com.cloudOffice.vo.system.AssignRoleVo;
import com.cloudOffice.vo.system.SysRoleQueryVo;

import java.util.Map;

public interface SysRoleService extends IService<SysRole> {
	Result<IPage<SysRole>> pageQueryRole(Long page, Long limit, SysRoleQueryVo sysRoleQueryVo);
	
	/**
	 * 根据用户获取角色数据
	 */
	Map<String, Object> findRoleByAdminId(Long userId);
	
	/**
	 * 分配角色
	 */
	void doAssign(AssignRoleVo assignRoleVo);
}
